#include <cstdio>
#include <cmath>

int main() {
    const int MAX = 10;
    long long a, b;
    long long sum = 0;
    int count = 0, num[MAX+10];
    scanf("%lld%lld", &a, &b);
    sum = a + b;
    if (sum == 0) {
        printf("0");
        return 0;
    }

    while (sum != 0) {
        num[count++] = sum % 1000;
        sum /= 1000;
    }

    for (int i = count-1; i >= 0; i--) {
        if (i != count-1) {
            printf(",%03d", num[i] >= 0 ? num[i]: -num[i]);
        } else {
            printf("%d", num[i]);
        }
    }

    return 0;
}
